BASEDIR=/path/to/armnn/
ARMNN_LIB = ${BASEDIR}/lib
ARMNN_INC = ${BASEDIR}/include
ARMNN_BNS = ${BASEDIR}/src/backends
ARMNN_UTL = ${BASEDIR}/src/armnnUtils
ARMNN_TST = ${BASEDIR}/tests
BOOST_LIB = ${BASEDIR}/boost/lib
BOOST_INC = ${BASEDIR}/boost/include

all: demoApp

demoApp: webcam-application.cpp Camera.hpp
	g++ -O3 -std=c++14 -I/usr/local/include/opencv4 -I$(ARMNN_INC) -I$(ARMNN_BNS) -I$(ARMNN_TST) -I$(ARMNN_UTL) -I$(BOOST_INC) webcam-application.cpp Camera.cpp -o demoApp -L$(BOOST_LIB) -L$(ARMNN_LIB) -larmnn -larmnnTfLiteParser -lboost_system -lboost_filesystem -lboost_program_options -lopencv_core -lopencv_video -lopencv_videoio -lopencv_highgui -lopencv_imgproc -lprotobuf

clean:
	-rm -f demoApp

test: demoApp
	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(ARMNN_LIB):/usr/local/lib64 ./demoApp  -m model/MobileNetSsdV1/ssd_mobilenet_v1_fp32.tflite -p data/labels.txt 
